package arch.dao.impl.manager;

import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.List;

import org.springframework.jdbc.core.BatchPreparedStatementSetter;

import arch.domain.manager.ArchLogger;
/**
 * 
 * @author <a mailto="wanglong635@126.com">Long</a>
 *
 */
public class ArchLoggerDeleteSetter implements BatchPreparedStatementSetter {
	private List<ArchLogger> loggers;
	
	public ArchLoggerDeleteSetter(List<ArchLogger> loggers){
		this.loggers = loggers;
	}
	
	public int getBatchSize() {
		return loggers.size();
	}

	public void setValues(PreparedStatement ps, int i) throws SQLException {
		ps.setString(1, loggers.get(i).getId());
	}

}
